home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / VBASIC / NW41BAS.ZIP / NW4XSERV.BAS < prev    next >
Encoding:
BASIC Source File  |  1995-05-17  |  9.8 KB  |  235 lines

  1. 'NW4XSERV.BAS - Visual Basic Interface File for Netware 4.X SDK
  2. '   Contains Function defination and type declarations for Server Conn.,
  3. '   Stats, rights, volumes (physical and Virtual Info)
  4. 'Created by Joseph A. DiVito - Seton Hall University
  5. 'Requirements - NW4XCOMM.BAS
  6. 'Corresponds to NWSERVER.H in the Netware SDK
  7. 'Includes some type decalration help from Novell's first release of NIVB
  8.  
  9. Type DSK_CACHE_STATS
  10.     systemElapsedTime As Long
  11.     cacheBufferCount As Integer
  12.     cacheBufferSize As Integer
  13.     dirtyCacheBuffers As Integer
  14.     cacheReadRequests As Long
  15.     cacheWriteRequests As Long
  16.     cacheHits As Long
  17.     cacheMisses As Long
  18.     physicalReadRequests As Long
  19.     physicalWriteRequests As Long
  20.     physicalReadErrors As Integer
  21.     physicalWriteErrors As Integer
  22.     cacheGetRequests As Long
  23.     cacheFullWriteRequests As Long
  24.     cachePartialWriteRequests As Long
  25.     backgroundDirtyWrites As Long
  26.     backgroundAgedWrites As Long
  27.     totalCacheWrites As Long
  28.     cacheAllocations As Long
  29.     thrashingCount As Integer
  30.     LRUBlockWasDirtyCount As Integer
  31.     readBeyondWriteCount As Integer
  32.     fragmentedWriteCount As Integer
  33.     cacheHitOnUnavailCount As Integer
  34.     cacheBlockScrappedCount As Integer
  35. End Type
  36.  
  37. Type DSK_CHANNEL_STATS
  38.     systemElapsedTime As Long
  39.     channelState As Integer
  40.     channelSyncState As Integer
  41.     driverType As String * 1
  42.     driverMajorVersion As String * 1
  43.     driverMinorVersion As String * 1
  44.     driverDescription As String * 65
  45.     IOAddr1 As Integer
  46.     IOAddr1Size As Integer
  47.     IOAddr2 As Integer
  48.     IOAddr2Size As Integer
  49.     sharedMem1Seg As String * 3
  50.     sharedMem1Off As Integer
  51.     sharedMem2Seg As String * 3
  52.     sharedMem2Off As Integer
  53.     interrupt1Used As String * 1
  54.     interrupt1 As String * 1
  55.     interrupt2Used As String * 1
  56.     interrupt2 As String * 1
  57.     DMAChannel1Used As String * 1
  58.     DMAChannel1 As String * 1
  59.     DMAChannel2Used As String * 1
  60.     DMAChannel2 As String * 1
  61.     reserved2 As Integer
  62.     configDescription As String * 80
  63. End Type
  64.  
  65. Type DRV_MAP_TABLE
  66.     systemElapsedTime As Long
  67.     SFTLevel As String * 1
  68.     logicalDriveCount As String * 1
  69.     physicalDriveCount As String * 1
  70.     diskChannelTable As String * 5
  71.     pendingIOCommands As Integer
  72.     mappingTable As String * 32
  73.     driveMirrorTable As String * 32
  74.     deadMirrorTable As String * 32
  75.     remirroredDrive As String * 1
  76.     reserved As String * 1
  77.     remirroredBlock As Long
  78.     SFTErrorTable As String * 120
  79. End Type
  80.  
  81. Type SERVER_LAN_IO_STATS
  82.     systemElapsedTime As Long
  83.     maxRoutingBuffersAvail As Integer
  84.     maxRoutingBuffersUsed As Integer
  85.     routingBuffersInUse As Integer
  86.     totalFileServicePackets As Long
  87.     fileServicePacketsBuffered As Integer
  88.     invalidConnPacketCount As Long
  89.     badLogicalConnCount As Long
  90.     packetsRcvdDuringProcCount As Integer
  91.     reprocessedRequestCount As Integer
  92.     badSequenceNumberPacketCount As Integer
  93.     duplicateReplyCount As Integer
  94.     acknowledgementsSent As Integer
  95.     badRequestTypeCount As Integer
  96.     attachDuringProcCount As Integer
  97.     attachWhileAttachingCount As Integer
  98.     forgedDetachRequestCount As Integer
  99.     badConnNumberOnDetachCount As Long
  100.     detachDuringProcCount As Integer
  101.     repliesCanceledCount As Integer
  102.     hopCountDiscardCount As Integer
  103.     unknownNetDiscardCount As Integer
  104.     noDGroupBufferDiscardCount As Integer
  105.     outPacketNoBufferDiscardCount As Integer
  106.     IPXNotMyNetworkCount As Integer
  107.     NetBIOSPropagationCount As Long
  108.     totalOtherPackets As Long
  109.     totalRoutedPackets As Long
  110. End Type
  111.  
  112. Type NW_FS_INFO
  113.     systemElapsedTime As Long
  114.     processorType As String * 1
  115.     reserved As String * 1
  116.     serviceProcessCount As String * 1
  117.     serverUtilizationPercent As String * 1
  118.     maxBinderyObjectsAvail As Integer
  119.     maxBinderyObjectsUsed As Integer
  120.     binderyObjectsInUse As Integer
  121.     serverMemoryInK As Integer
  122.     dynamicAreaCount As Integer
  123.     dynamicSpace1 As Long
  124.     maxUsedDynamicSpace1 As Long
  125.     dynamicSpaceInUse1 As Long
  126.     dynamicSpace2 As Long
  127.     maxUsedDynamicSpace2 As Long
  128.     dynamicSpaceInUse2 As Long
  129.     dynamicSpace3 As Long
  130.     maxUsedDynamicSpace3 As Long
  131.     dynamicSpaceInUse3 As Long
  132. End Type
  133.  
  134. Type FILESYS_STATS
  135.     systemElapsedTime As Long
  136.     maxOpenFiles As Integer
  137.     maxFilesOpen As Integer
  138.     currOpenFiles As Integer
  139.     totalFilesOpened As Long
  140.     totalReadRequests As Long
  141.     totalWriteRequests As Long
  142.     currChangedFATSectors As Integer
  143.     totalChangedFATSectors As Long
  144.     FATWriteErrors As Integer
  145.     fatalFATWriteErrors As Integer
  146.     FATScanErrors As Integer
  147.     maxIndexFilesOpened As Integer
  148.     currOpenIndexedFiles As Integer
  149.     attachedIndexFiles As Integer
  150.     availableindexFiles As Integer
  151. End Type
  152.  
  153. Type NWLAN_CONFIG
  154.     networkAddress As Long
  155.     hostAddress1 As Long
  156.     hostAddress2 As Integer
  157.     LANDriverInstalled As String * 1
  158.     optionNumber As String * 1
  159.     configurationText1 As String * 80
  160.     configuratinoText2 As String * 80
  161. End Type
  162.  
  163. Type PHYS_DSK_STATS
  164.     systemElapsedTime As Long
  165.     diskChannel As String * 1
  166.     diskRemovable As String * 1
  167.     driveType As String * 1
  168.     controllerDriverNumber As String * 1
  169.     controllerNumber As String * 1
  170.     controllerType As String * 1
  171.     driveSize As Long
  172.     driveCylinders As Integer
  173.     driveHeads As String * 1
  174.     sectorsPerTrack As String * 1
  175.     IOErrorCount As Integer
  176.     hotFixStart As Long
  177.     hotFixSize As Integer
  178.     hotFixSizeAvailable As Integer
  179.     hotFixDisabled As String * 1
  180. End Type
  181.  
  182. Type VERSION_INFO
  183.     ServerName As String * 48
  184.     netwareVersion As String * 1
  185.     netwareSubVersion As String * 1
  186.     maxConnectionsSupported As Long
  187.     ConnectionsInUse As Long
  188.     maxVolumesSupported As Integer
  189.     revisionLevel As String * 1
  190.     SFTLevel As String * 1
  191.     TTSLevel As String * 1
  192.     peakConnectionsUsed As Long
  193.     AccountingVersion As String * 1
  194.     VAPVersion As String * 1
  195.     QueueingVersion As String * 1
  196.     PrintServerVersion As String * 1
  197.     VirtualConsoleVersion As String * 1
  198.     securityRestrictionLevel As String * 1
  199.     internetBridgeSupport As String * 1
  200. End Type
  201.  
  202. Declare Function NWCheckConsolePrivileges Lib "NWCALLS.DLL" (ByVal ConnID%) As Integer
  203. Declare Function NWCheckNetWareVersion Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal minVersion%, ByVal minSubVersion%, ByVal minRevision%, ByVal minSFT%, ByVal minTTS%, ByVal CompFlag%) As Integer
  204. Declare Function NWDisableFileServerLogin Lib "NWCALLS.DLL" (ByVal ConnID%) As Integer
  205. Declare Function NWDownFileServer Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal forceFlag%) As Integer
  206. Declare Function NWEnableFileServerLogin Lib "NWCALLS.DLL" (ByVal ConnID%) As Integer
  207. Declare Function NWGetDiskCacheStats Lib "NWCALLS.DLL" (ByVal ConnID%, cacheStats As DSK_CACHE_STATS) As Integer     '2.x only
  208. Declare Function NWGetDiskChannelStats Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal channelNumber%, channelStats As DSK_CHANNEL_STATS) As Integer     '2.x only
  209. Declare Function NWGetFSDriveMapTable Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal structSize%, driveMappingTable As DRV_MAP_TABLE) As Integer        '2.x only
  210. Declare Function NWGetFIleServerDateAndTime Lib "NWCALLS.DLL" (ByVal ConnID%, dateAndTime As DATE_AND_TIME) As Integer
  211. 'companyName, revision, and copyrightNotice must be initialized to 80 bytes
  212. 'revisionDate must be initialized to 24 bytes
  213. Declare Function NWGetFileServerDescription Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal companyName$, ByVal Revision$, ByVal revisionDate$, ByVal copyrightNotice$) As Integer
  214. Declare Function NWGetFileServerLANIOStats Lib "NWCALLS.DLL" (ByVal ConnID%, serverLANIOStats As SERVER_LAN_IO_STATS) As Integer        '2.x only
  215. Declare Function NWGetFileServerLoginStatus Lib "NWCALLS.DLL" (ByVal ConnID%, loginEnabledFlag%) As Integer
  216. Declare Function NWGetFileServerMiscInfo Lib "NWCALLS.DLL" (ByVal ConnID%, miscInfo As NW_FS_INFO) As Integer       '2.x only
  217. Declare Function NWGetFileServerName Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal fileServerName$) As Integer
  218. Declare Function NWGetFileSystemStats Lib "NWCALLS.DLL" (ByVal ConnID%, fileSysStats As FILESYS_STATS) As Integer        '2.x only
  219. Declare Function NWGetFSLANDriverConfigInfo Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal LANBoardNumber%, LANConfig As NWLAN_CONFIG) As Integer    '2.x only
  220. Declare Function NWGetPhysicalDiskStats Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal physDiskNumber%, physDiskStats As PHYS_DSK_STATS) As Integer   '2.x only
  221. Declare Function NWGetFileServerVersionInfo Lib "NWCALLS.DLL" (ByVal ConnID%, serverInfo As VERSION_INFO) As Integer       'documentation says 2.x only, but it works in 3.x
  222. Declare Function NWSetFileServerDateAndTime Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal theYear%, ByVal theMonth%, ByVal theDay%, ByVal theHour%, ByVal thein%, ByVal theSec%) As Integer
  223. Declare Function NWGetFileServerInformation Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal ServerName$, MajorVersion%, MinorVersion%, Revision%, MaxxConnections%, MaxConnectionsUsed%, ConnectionsInUse%, NumVolumes%, SFTLevel%, TTSLevel%) As Integer
  224. Declare Function NWGetFileServerExtendedInfo Lib "NWCALLS.DLL" (ByVal ConnID%, AccountingVersion%, VAPVersion%, QueueingVersion%, PrintServerVersion%, VirtualConsoleVersion%, SecurityVersion%, InternetBridgeVersion%) As Integer
  225. Declare Function NWGetFileServerType Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal TypeFlag%, ServerType%) As Integer
  226. Declare Function NWAttachtoFileServer Lib "NWCALLS.DLL" (ByVal ServerName$, ByVal ScopeFlag%, ConnID%) As Integer
  227. Declare Function NWDetachFromFileServer Lib "NWCALLS.DLL" (ByVal ConnID%) As Integer
  228. Declare Function NWLoginToFileServer Lib "NWCALLS.DLL" (ByVal ConnID%, ByVal ObjectName$, ByVal ObjectType%, ByVal Password$) As Integer
  229. Declare Function NWLogoutFromFileServer Lib "NWCALLS.DLL" (ByVal ConnID%) As Integer
  230.  
  231.  
  232.  
  233.  
  234.  
  235.